package com.pignest.hotel.beans;

import com.pignest.hotel.annotation.Bean;
import com.pignest.hotel.beans.global.BaseBean;

/** 
 * 预订表与房间关联表
 * 预订时可排房, 可排多间房
 *  */
@Bean("预订排房")
public class BookingRoom extends BaseBean {
	private static final long serialVersionUID = 5182786423475820521L;
	
	private Booking booking;
	private Room room;
	private RoomType roomType;
	private String status;
	
	public Booking getBooking() {
		return booking;
	}
	public void setBooking(Booking booking) {
		this.booking = booking;
	}
	public Room getRoom() {
		return room;
	}
	public void setRoom(Room room) {
		this.room = room;
	}
	public RoomType getRoomType() {
		return roomType;
	}
	public void setRoomType(RoomType roomType) {
		this.roomType = roomType;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toSimpleString() {
		return room.getName();
	}
}
